﻿<%@ Page language="c#" Codebehind="NewStaff.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Position.NewStaff" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>NewStaff</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<style type="text/css">
table {text-align:left; width:560px;}
table th{ background:#ccccff; border-collapse:collapse;}
table th,table td {border:1px solid #93BEE2; padding:4px;}
.InputCss{ border:1px solid #ccc; padding:3px; width:80%;}
</style>
<script language="javascript" type="text/javascript">
		function ReturnBack(ReturnType)
		{			
			if(ReturnType==0)
				location.href ="ListView.aspx?Position_ID=<%=PositionID%>";	
			else
				location.href ="../Staff/ManageStaff.aspx";			
		}
		</script>
</head>
<body>
<div class="m">
  <p class="path"><a href="/SubModule/UnitiveDocument/">我的桌面</a> >> 员工注册</p>
  <div class="con">

		<form id="NewStaff" method="post" runat="server">

				<table>
                    <colgroup>
                        <col width="20%" />
                        <col width="80%" />
                    </colgroup>
					<tr>
						<td align="right">用户姓名:</td>
						<td><asp:textbox id="txtStaffName" CssClass="InputCss" Runat="server" Columns="70"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="请输入姓名" ControlToValidate="txtStaffName"></asp:requiredfieldvalidator><asp:literal id="message" runat="server" EnableViewState="False"></asp:literal></td>
					</tr>
					<tr>
						<td align="right">真实姓名:</td>
						<td><asp:textbox id="txtRealName" CssClass="InputCss" Runat="server" Columns="70"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ErrorMessage="请输入真实姓名" ControlToValidate="txtRealName"
								Font-Size="X-Small"></asp:requiredfieldvalidator></td>
					</tr>
					<tr>
						<td align="right">性　　别:</td>
						<td><asp:radiobutton id="rb_male" Runat="server" GroupName="rSex" Checked="True" Text="男"></asp:radiobutton><asp:radiobutton id="rb_female" Runat="server" GroupName="rSex" Checked="False" Text="女"></asp:radiobutton></td>
					</tr>
					<tr>
						<td align="right">出生日期:</td>
						<td><asp:textbox id="txtBirthday" onfocus="setday(this)" CssClass="InputCss" Runat="server" Columns="70"></asp:textbox></td>
					</tr>
					<tr>
						<td align="right">密　　码:</td>
						<td><asp:textbox id="txtPassword" runat="server" CssClass="InputCss" TextMode="Password"></asp:textbox><br /><asp:requiredfieldvalidator id="RequiredFieldValidator4" runat="server" ErrorMessage="密码不能为空" ControlToValidate="txtPassword"
								Font-Size="X-Small"></asp:requiredfieldvalidator></td>
					</tr>
					<tr>
						<td align="right">重复密码:</td>
						<td><asp:textbox id="txtRePassword" runat="server" CssClass="InputCss" TextMode="Password"></asp:textbox><br /><asp:comparevalidator id="CompareValidator1" runat="server" ErrorMessage="密码确认错误" ControlToValidate="txtRePassword" ControlToCompare="txtPassword"></asp:comparevalidator></td>
					</tr>
					<tr>
						<td align="right">电子邮件:</td>
						<td><asp:textbox id="txtEmail" CssClass="InputCss" Runat="server" Columns="70"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" ErrorMessage="请填写电子邮件地址" ControlToValidate="txtEmail" Display="Dynamic"></asp:requiredfieldvalidator><asp:regularexpressionvalidator id="checkmail" runat="server" ErrorMessage="错误的EMAIL格式" ControlToValidate="txtEmail" Display="Dynamic" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:regularexpressionvalidator></td>
					</tr>
					<tr>
						<td align="right">公司电话:</td>
						<td><asp:textbox id="txtPhone" CssClass="InputCss" Runat="server" Columns="70"></asp:textbox></td>
					</tr>
					<tr>
						<td align="right">移动电话:</td>
						<td><asp:textbox id="txtMobile" CssClass="InputCss" Runat="server" Columns="70"></asp:textbox><asp:regularexpressionvalidator id="checkmobile" runat="server" ErrorMessage="手机号错误" ControlToValidate="txtMobile" ValidationExpression="\d*"></asp:regularexpressionvalidator></td>
					</tr>
					<tr>
						<td align="right">部门级别:</td>
						<td><asp:textbox id="txtCaste" CssClass="InputCss" Runat="server" Columns="70" ></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator5" runat="server" ErrorMessage="不能为空" ControlToValidate="txtCaste"></asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" ErrorMessage="必须为数字" ControlToValidate="txtCaste"
									ValidationExpression="\d*"></asp:regularexpressionvalidator></td>
					</tr>
					<tr id="myposition" runat="server">
						<td align="right">所属部门:</td>
						<td><asp:dropdownlist id="cboPosition" runat="server" ></asp:dropdownlist></td>
					</tr>
					<tr>
						<td colSpan="2" align="center">
							<asp:CheckBox id="cbRemind" runat="server" Text="站内短消息提醒(提醒公司全体员工)" ></asp:CheckBox></TD>
					</tr>
					<tr>
						<td colSpan="2" style="height: 32px" align="center"><asp:button id="cmdSubmit" runat="server" CssClass="redButtonCss" Width="60px" Text="确定" Height="20px"></asp:button> <input class=redButtonCss onclick="ReturnBack(<%=ReturnPage%>)" type="button" value="返 回" name="cmdReturn" />

						</td>
					</tr>
				</table>
		</form>
  </div>
</div>
</body>
</html>
